const getters = {
  deployUploadApi: state => state.api.deployUploadApi,
  databaseUploadApi: state => state.api.databaseUploadApi,
  size: state => state.app.size,
  sidebar: state => state.app.sidebar,
  device: state => state.app.device,
  token: state => state.user.token,
  visitedViews: state => state.tagsView.visitedViews,
  cachedViews: state => state.tagsView.cachedViews,
  roles: state => state.user.roles,
  user: state => state.user.user,
  isEdit: state => state.user.editLayout,
  loadMenus: state => state.user.loadMenus,
  permission_routers: state => state.permission.routers,
  addRouters: state => state.permission.addRouters,
  socketApi: state => state.api.socketApi,
  imagesUploadApi: state => state.api.imagesUploadApi,
  imagesUploadEditorApi: state => state.api.imagesUploadEditorApi,
  imagesUploadApiV2: state => state.api.imagesUploadApiV2,
  baseApi: state => state.api.baseApi,
  fileUploadApi: state => state.api.fileUploadApi,
  updateAvatarApi: state => state.api.updateAvatarApi,
  qiNiuUploadApi: state => state.api.qiNiuUploadApi,
  sqlApi: state => state.api.sqlApi,
  swaggerApi: state => state.api.swaggerApi,
  config: state => state.settings.config,
  menu: state => state.user.menu,
  menuId: state => state.user.menuId,
  appid: state => state.settings.appid,
  agentId: state => state.settings.agentId,
  redirectUrl: state => state.setting.redirectUrl,
  activeMenuId: state => state.user.menuIds,
  theme: state => state.theme.themes
  // theme: state => {state.theme.themes = localStorage.getItem('themes')}
};
export default getters;
